﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TAMS.Admin
{
    public partial class Admin_RA1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ((Menu)Master.FindControl("Menu1")).Items[2].Selected = true;
        }

        protected void details_click(object sender, EventArgs e)
        {

            GridViewRow clickedRow = ((Button)sender).NamingContainer as GridViewRow;

            ClientScript.RegisterStartupScript(this.GetType(), "CloseWin", "<script>window.close()</script>");
            // id yi alıyor cell in 1. indexi
            string key = clickedRow.Cells[1].Text;

            string url = "../Details.aspx?type=student&id=" + key;

            ClientScript.RegisterStartupScript(this.GetType(), "OpenWin", "<script>openNewWin('" + url + "')</script>");

        }

        protected void selected_changed(object sender, EventArgs e)
        {

        }
    }
}